package com.ichart.html;

import java.util.HashMap;
import java.util.Map;
/**
 * 用于过滤一些用不到的配置项
 *
 * create at 2013-1-24 下午07:10:54
 * @author wanghe
 */
public class OptionFilter {
	public static Map<String,String> filter = new HashMap<String,String>();
	static{
		filter.put("iChart.Rectangle","|color|font|fontsize|fontweight|");
		filter.put("iChart.Rectangle2D","|color|font|fontsize|fontweight|");
		filter.put("iChart.Rectangle3D","|color|font|fontsize|fontweight|");
		filter.put("iChart.Sector","|color|font|fontsize|fontweight|");
		filter.put("iChart.Sector2D","|color|font|fontsize|fontweight|");
		filter.put("iChart.Sector3D","|color|font|fontsize|fontweight|");
		filter.put("iChart.LineSegment","|color|font|fontsize|fontweight|");
		filter.put("iChart.Scale","|color|font|fontsize|fontweight|");
		filter.put("iChart.Coordinate2D","|color|font|fontsize|fontweight|");
		filter.put("iChart.Coordinate3D","|color|font|fontsize|fontweight|");
		filter.put("iChart.Custom","|color|color_factor|font|fontsize|fontweight|background_color|border|gradient|gradient_mode|offsetx|offsety|originx|originy|padding|strokeStyle|shadow|shadow_blur|shadow_color|shadow_offsetx|shadow_offsety|");
	}
	
	public static boolean ignore(String clazz,String item){
		if(filter.get(clazz)!=null&&filter.get(clazz).indexOf("|"+item+"|")!=-1){
			return true;
		}
		return false;
	}
	
	
}
